﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JzSport.Api.Results
{
    public class GetMessageClipListResult : List<JzSport.Api.Results.GetMessageClipListResult.MessageSetItem>
    {
        public class MessageSetItem
        {
            /// <summary>
            /// 消息编号
            /// </summary>
            public Guid Id { get; set; }

            /// <summary>
            /// 最新更新时间
            /// </summary>
            public DateTime LastestUpdatedTime { get; set; }

            /// <summary>
            /// 最新发送人
            /// </summary>
            public int LastestSenderId { get; set; }

            public string LastestSenderAvatarUrl { get; set; }

            public string LastestSenderNickName { get; set; }

            /// <summary>
            /// 最新标题
            /// </summary>
            public string LastestTitle { get; set; }

            /// <summary>
            /// 最新内容
            /// </summary>
            public string LastestContent { get; set; }


            /// <summary>
            /// 最新消息数量
            /// </summary>
            public int NewMessageCount { get; set; }

            /// <summary>
            /// 总消息数
            /// </summary>
            public int MessageCount { get; set; }

            /// <summary>
            /// 接收人
            /// </summary>
            public int ReceiverId { get; set; }

            /// <summary>
            /// 类型
            /// </summary>
            public int Type { get; set; }

            /// <summary>
            /// 消息的类型
            /// </summary>
            public int MessageType { get; set; }

            /// <summary>
            /// 标识文本，内部字段，用于合并消息到一个summary里
            /// </summary>
            public string IdentityText { get; set; }

            public DateTime CreatedTime { get; set; }

            /// <summary>
            /// 标记信息，用于区别消息夹关联的实际数据
            /// </summary>
            public string Tag { get; set; }
        }
    }
}
